<?php

namespace app\home\validate;
use think\Validate;

class Register extends Validate
{
    protected $rule = [
        'mobile'    => 'require|mobile|unique:user',
        'pwd'       => 'require|min:6',
        // 'captcha'   => 'captcha'
    ];

    protected $message = [
        'mobile.require'    => '请输入手机号',
        'mobile.mobile'     => '手机号码格式不正确',
        'mobile.unique'     => '手机号已存在',
        'pwd.require'       => '密码不能为空',
        'pwd.min'           => '请输入六位以上密码',
        // 'captcha.captcha'   => '验证码错误'
    ];
}